package demo;


/**
 * @author xiehg
 * @date 2020/5
 */
public class EventBusTest {
    public static void main(String[] args) {
      Bus bus = new EventBus();
        bus.register(new Subscriber1());
        bus.register(new Subscriber2());
        bus.post("Hello");
        System.out.println("---------------------------");
        bus.post("Hello","test");
        bus.close();
    }
}